<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/2
 * Time: 14:14
 */

namespace app\educational\controller;


use app\educational\service\PrimaryparentService;
use cmf\controller\AdminBaseController;
use think\Db;

class PrimaryParentController extends  AdminBaseController
{
    public function index()
    {


        $admin_shop_id=$this->admin_shop_id;
        $param = $this->request->param();
        $course=Db::name('course')->where(['delete_time'=>0])->select()->toArray();
        //店铺ID
        $param['admin_shop_id']=$admin_shop_id;

        $service=new PrimaryparentService();
        $data=$service->PriParList($param);

        $this->assign('data',$data);
        $this->assign('param',$param);
        $this->assign('course',$course);

        $this->assign('page', $data->render());
        return $this->fetch();
    }
}